﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace papercut2.UI
{
    /// <summary>
    /// InterFace.xaml 的交互逻辑
    /// </summary>
    public partial class InterFace : Window
    {
        public InterFace()
        {
            InitializeComponent();
        }
        private void button1_MouseEnter(object sender, RoutedEventArgs e)
        {
            if (lay1.Visibility == Visibility.Collapsed)
            {
                lay1.Visibility = Visibility.Visible;
                lay2.Visibility = Visibility.Collapsed;
                lay3.Visibility = Visibility.Collapsed;
            }
        }

        private void button2_MouseEnter(object sender, RoutedEventArgs e)
        {
            if (lay2.Visibility == Visibility.Collapsed)
            {
                lay2.Visibility = Visibility.Visible;
                lay1.Visibility = Visibility.Collapsed;
                lay3.Visibility = Visibility.Collapsed;
            }
        }

        private void button3_MouseEnter(object sender, RoutedEventArgs e)
        {
            if (lay3.Visibility == Visibility.Collapsed)
            {
                lay3.Visibility = Visibility.Visible;
                lay1.Visibility = Visibility.Collapsed;
                lay2.Visibility = Visibility.Collapsed;
            }
        }

        private void button4_MouseEnter(object sender, RoutedEventArgs e)
        {
            if (box1.Visibility == Visibility.Collapsed)
            {
                box1.Visibility = Visibility.Visible;
                box2.Visibility = Visibility.Collapsed;
            }
        }

        private void button5_MouseEnter(object sender, RoutedEventArgs e)
        {
            if (box2.Visibility == Visibility.Collapsed)
            {
                box2.Visibility = Visibility.Visible;
                box1.Visibility = Visibility.Collapsed;
            }
        }
    }
}
